package com.sixth.service;

import com.sixth.entity.Staff;
import com.sixth.util.CommonResult;
import com.sixth.util.TableLayUi;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @program: ssm002
 * @description:
 * @author: 老魏
 * @create: 2021-12-10 19:26
 **/
public interface StaffService {

    //登录
    CommonResult findByUserameAndPassword(Integer staffid, String password);

    //员工模糊查询
    TableLayUi findStaffBycondition(int page, int limit, String staffname,Integer staffid,Integer branchid);

    //离职
    CommonResult updateState(int state, Integer id );

     //个人信息查询
    CommonResult getDeptRole();

    //改密码
    CommonResult updatePassword(String password);

    //判断店长职位冲突
    CommonResult position(Integer branchid);

    //判断员工工号
    CommonResult FindStaffid(Integer staffid);

    //判断身份证号
    CommonResult getStaffIdcard(String idcard);

    //判断手机号
    CommonResult getStaffPhone(String phone);

    //冻结
    CommonResult updateStateDongjie(int state,Integer id);

    //解冻
    CommonResult updateStateJieDong(int state,Integer id);

    //修改员工信息
    CommonResult updatestaffmsg(String staffname,String address,String phone,Integer id);

    //添加员工
    CommonResult StaffAdd(Integer staffid,String staffname ,String password,String idcard,String address, String phone, Date entrytime,Integer state,Integer roleid,String url,Integer branchid );

    //审核通过后，往审核详情表中输入审核人信息和审核时间
    CommonResult ExPass(Integer id, Integer newbranchid, Integer newdeptid, Integer staffid);

    //审核驳回
     CommonResult ExReject(Integer id);

    CommonResult getStaffs();

    List<Map> getStaff();
}
